<script setup lang="ts">
// 产品功能列表
const features = [
  {
    title: '智能对话',
    description: '基于先进的自然语言处理技术，提供流畅的对话体验',
    icon: '💬',
    details: [
      '多轮对话支持',
      '上下文理解',
      '情感识别',
      '个性化回复'
    ]
  },
  {
    title: '知识库集成',
    description: '支持接入企业知识库，提供精准的知识检索和问答服务',
    icon: '📚',
    details: [
      '知识库管理',
      '智能检索',
      '自动更新',
      '权限控制'
    ]
  },
  {
    title: '多场景应用',
    description: '适用于客服、教育、医疗等多个领域的智能解决方案',
    icon: '🎯',
    details: [
      '场景定制',
      '行业适配',
      '流程优化',
      '效果分析'
    ]
  },
  {
    title: '数据分析',
    description: '提供全面的数据分析和可视化功能，助力业务决策',
    icon: '📊',
    details: [
      '使用统计',
      '效果分析',
      '用户画像',
      '趋势预测'
    ]
  }
]

// 技术规格
const specifications = [
  {
    category: '性能指标',
    items: [
      { name: '响应时间', value: '< 100ms' },
      { name: '并发处理', value: '1000+ QPS' },
      { name: '准确率', value: '> 95%' }
    ]
  },
  {
    category: '系统要求',
    items: [
      { name: '操作系统', value: 'Windows/Linux/MacOS' },
      { name: '内存要求', value: '4GB+ RAM' },
      { name: '存储空间', value: '10GB+ 可用空间' }
    ]
  },
  {
    category: '集成方式',
    items: [
      { name: 'API 接口', value: 'RESTful API' },
      { name: 'SDK 支持', value: 'Python/Java/Node.js' },
      { name: '部署方式', value: '云服务/本地部署' }
    ]
  }
]

// 客户案例
const caseStudies = [
  {
    company: '某科技公司',
    industry: '互联网',
    challenge: '需要处理大量用户咨询，提高客服效率',
    solution: '部署智能客服系统，实现 24/7 自动回复',
    result: '客服效率提升 300%，用户满意度提升 40%'
  },
  {
    company: '某教育机构',
    industry: '教育',
    challenge: '需要为学生提供个性化学习辅导',
    solution: '集成智能辅导系统，提供个性化学习方案',
    result: '学生学习效率提升 50%，教师工作量减少 60%'
  },
  {
    company: '某医疗机构',
    industry: '医疗',
    challenge: '需要提高医疗咨询效率，减轻医生负担',
    solution: '部署智能医疗助手，提供初步诊断建议',
    result: '咨询效率提升 200%，医生工作效率提升 35%'
  }
]
</script>

<template>
  <div class="product">
    <!-- 产品头部 -->
    <section class="product-header">
      <div class="container">
        <h1>AI 智能助手</h1>
        <p>为企业提供智能化解决方案，提升运营效率</p>
      </div>
    </section>

    <!-- 产品功能 -->
    <section class="features">
      <div class="container">
        <h2>核心功能</h2>
        <div class="features-grid">
          <div v-for="feature in features" :key="feature.title" class="feature-card">
            <div class="feature-icon">{{ feature.icon }}</div>
            <h3>{{ feature.title }}</h3>
            <p>{{ feature.description }}</p>
            <ul class="feature-details">
              <li v-for="detail in feature.details" :key="detail">{{ detail }}</li>
            </ul>
          </div>
        </div>
      </div>
    </section>

    <!-- 技术规格 -->
    <section class="specifications">
      <div class="container">
        <h2>技术规格</h2>
        <div class="specs-grid">
          <div v-for="spec in specifications" :key="spec.category" class="spec-card">
            <h3>{{ spec.category }}</h3>
            <table>
              <tr v-for="item in spec.items" :key="item.name">
                <td>{{ item.name }}</td>
                <td>{{ item.value }}</td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </section>

    <!-- 客户案例 -->
    <section class="cases">
      <div class="container">
        <h2>成功案例</h2>
        <div class="cases-grid">
          <div v-for="caseItem in caseStudies" :key="caseItem.company" class="case-card">
            <div class="case-header">
              <h3>{{ caseItem.company }}</h3>
              <span class="industry">{{ caseItem.industry }}</span>
            </div>
            <div class="case-content">
              <div class="case-item">
                <h4>挑战</h4>
                <p>{{ caseItem.challenge }}</p>
              </div>
              <div class="case-item">
                <h4>解决方案</h4>
                <p>{{ caseItem.solution }}</p>
              </div>
              <div class="case-item">
                <h4>成果</h4>
                <p>{{ caseItem.result }}</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 行动召唤 -->
    <section class="cta">
      <div class="container">
        <h2>开始使用 AI 智能助手</h2>
        <p>立即体验智能化带来的效率提升</p>
        <div class="cta-buttons">
          <button class="btn-primary">免费试用</button>
          <button class="btn-secondary">联系我们</button>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.product {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 产品头部样式 */
.product-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.product-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-header p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* 功能部分样式 */
.features {
  padding: 5rem 0;
  background: #f8f9fa;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-details {
  list-style: none;
  padding: 0;
}

.feature-details li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

.feature-details li::before {
  content: "✓";
  color: #007bff;
  position: absolute;
  left: 0;
}

/* 技术规格样式 */
.specifications {
  padding: 5rem 0;
  background: white;
}

.specifications h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.spec-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.spec-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.spec-card table {
  width: 100%;
}

.spec-card td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #dee2e6;
}

.spec-card td:first-child {
  color: #666;
  width: 40%;
}

.spec-card td:last-child {
  color: #333;
  font-weight: 500;
}

/* 案例样式 */
.cases {
  padding: 5rem 0;
  background: #f8f9fa;
}

.cases h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-header {
  margin-bottom: 1.5rem;
}

.case-header h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.industry {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e9ecef;
  color: #666;
  border-radius: 20px;
  font-size: 0.875rem;
}

.case-item {
  margin-bottom: 1.5rem;
}

.case-item h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.case-item p {
  color: #666;
  line-height: 1.6;
}

/* 行动召唤样式 */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  border: none;
  color: #007bff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.btn-primary:hover {
  background: #f8f9fa;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-header {
    padding: 4rem 0;
  }

  .product-header h1 {
    font-size: 2.5rem;
  }

  .features-grid,
  .specs-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
</style> 